﻿using The_Virginia_code.models;

namespace The_Virginia_code
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚密码加密
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            String plaintext, key;
            //用户输入明文和密钥
            Console.Write("请输入明文（大写）：");
            plaintext=Console.ReadLine();
            Console.Write("请输入密钥（大写）：");
            key=Console.ReadLine();
            //加密
            MyEncoder myencoder=new MyEncoder () ;
            myencoder.Plaintext = plaintext;
            myencoder.Key = key;
            myencoder.Encoder();
            Console.WriteLine($"对应密文为：{myencoder.Ciphertext}");
            Console.ReadKey();
        }
    }
}